<template>
    <a-table :columns="columns" :data-source="data" @resizeColumn="handleResizeColumn">
        <slot></slot>

    </a-table>
</template>

<script lang="ts">
export default {
    name: 'searchTable'
}
</script>
<script lang="ts" setup>
import { SmileOutlined, DownOutlined } from '@ant-design/icons-vue';
import type { TableColumnsType } from 'ant-design-vue';
import { defineComponent, ref } from 'vue';

const props = defineProps({
    columns: [] as any[],
    data: [] as any[],
});
const handleResizeColumn = (w: any, col: any) => {
    col.width = w;
};
</script>